﻿using System.Windows;

namespace DataContextDemo
{
    public partial class BoxWindow : Window
    {
        public BoxWindow()
        {
            InitializeComponent();

            //数据驱动，关键点
            this.DataContext = new WindowModel();
        }
    }
}